package com.iqi.onigao.module;

import net.IClient;

public class ErrorCheck {
	public static void check(IClient session, int code) {
		if (code!=0) {
			session.close();
			throw new UnsupportedOperationException("code:"+code);
		}
	}
}
